package yf.mall.controller.api;

import com.yf.annotation.IgnoreAuth;
import com.yf.response.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/test")
@Slf4j
public class ApiTestController {

    /**
     * 抖音授权接口测试
     */
    @RequestMapping("/dy")
    @IgnoreAuth
    public String  testDy(String session,String ext_time,String user_id,String user_nick,String state){
        log.info("session:{}",session);
        log.info("ext_time:{}",ext_time);
        log.info("user_id:{}",user_id);
        log.info("user_nick:{}",user_nick);
        log.info("state:{}",state);
        log.info("毁掉了");
        System.out.println("毁掉了");
        return "抖音授权回调了";
    }

}
